//
//  HomeViewController.m
//  zhixinApp
//
//  Created by zhiguanzhl on 2017/11/11.
//  Copyright © 2017年 zhiguanzhl. All rights reserved.
//

#import "HomeViewController.h"

@interface HomeViewController ()
@property (weak, nonatomic) IBOutlet UIScrollView *scrollerView;

@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImage *image = kImageName(@"homebg");
    UIImageView *imgV = [[UIImageView alloc]initWithImage:image];
    imgV.frame = CGRectMake(0, 0, kSCREEN_WIDTH, image.size.height/image.size.width*kSCREEN_WIDTH);
    [self.scrollerView setContentSize:imgV.size];
    
    
    [self.scrollerView addSubview: imgV];
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
